package com.demo.project_template.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 金币变动记录表
 * </p>
 *
 * @author 杨玉龙
 * @since 2024-08-20 18:10:02
 */
@Getter
@Setter
@TableName("t_user_gold_record")
@ApiModel(value = "UserGoldRecord对象", description = "金币变动记录表")
public class UserGoldRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private Long id;

    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty("变动金额")
    @TableField("amount")
    private Integer amount;

    @ApiModelProperty("变动原因")
    @TableField("reason")
    private String reason;

    @ApiModelProperty("类型")
    @TableField("type")
    private String type;

    @ApiModelProperty("是否为增加")
    @TableField("is_add")
    private String isAdd;

    @ApiModelProperty("创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;


}
